---
sidebar_label: Google AI
---

import CodeBlock from "@theme/CodeBlock";

# Google Generative AI

You can access Google's generative AI embeddings models through
`@langchain/google-genai` integration package.

Get an API key here: https://ai.google.dev/tutorials/setup

You'll need to install the `@langchain/google-genai` package:

import IntegrationInstallTooltip from "@mdx_components/integration_install_tooltip.mdx";

<IntegrationInstallTooltip></IntegrationInstallTooltip>

```bash npm2yarn
npm install @langchain/google-genai
```

## Usage

import GoogleGenerativeAIExample from "@examples/models/embeddings/googlegenerativeai.ts";

<CodeBlock language="typescript">{GoogleGenerativeAIExample}</CodeBlock>
